package com.hqyj.ssm_project.service;

import com.hqyj.ssm_project.exception.ServiceException;
import com.hqyj.ssm_project.pojo.User;
import com.hqyj.ssm_project.utils.PageUtil;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


public interface UserService {
//    @Transactional
     boolean addUser(User user) throws ServiceException;
    List<User> findAllUser();

    User selectByPrimaryKey(Integer userId);
    int updateByPrimaryKeySelective(User row);

    int deleteByPrimaryKey(Integer userId);

    List<User> findUserNoidcard();

    void updateIdcardByUser(Integer userId);

    List<User> selectUserAndIdcardAndDetp();

    void updateUserByDeptId(Integer id);

    User selectUserAndDetp(Integer userId);


    User login(User user);

    PageUtil<User> findUserByPageNumber(int currentNum);

    List<User> selectSuperUser(Integer roleId);

    User findCardUser(String cardNum);
}
